package com.jbpm.service;

import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.taskmgmt.def.AssignmentHandler;
import org.jbpm.taskmgmt.exe.Assignable;

public class TelTasks implements AssignmentHandler{

	public void assign(Assignable assign, ExecutionContext ctx) throws Exception {
		String member=(String)ctx.getContextInstance().getVariable("meetingmember");
		//1,2,3,4,5把字符串转换成数组，用逗号分隔
		String actorIds[] = member.split(",");
		//抢任务,指定一批人
		assign.setPooledActors(actorIds);
//		assign.setActorId("");指定一个人
	}

}
